package com.study.common.core.domain.model;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Validated
@Data
public class AppSmsCodeBody {

    /**
     * 手机号
     */
    @NotNull
    @Pattern(regexp = "(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}", message = "手机号码校验不通过")
    private String phone;

    /**
     * 验证码
     */
    @NotNull
    private String code;
    /**
     * 验证码
     */
    @NotNull
    private String areaCode;

}
